<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="/templates/templateLogin.xhtml">

	<ui:define name="formLogin">

		<ui:param name="actionBean" value="#{loginMB}" />

		<p:panel style="text-align:center;height:70%;">
			<div align="center" >
				<h:form enctype="multipart/form-data">
					<p:graphicImage value="/imagens/gnome_system_users.png"></p:graphicImage>
					<h:panelGrid columns="2" id="loginPanel" style="text-align:center" cellspacing="0">


						<p:outputLabel value="Login:" for="nome" />
						<p:focus for="nome">
						<p:inputText id="nome" value="#{loginMB.login.usuario}"
							placeholder="Digite seu login" required="true" size="15"
							requiredMessage="Login é obrigatório" />
						</p:focus>
						<p:outputLabel value="Senha:" for="password" />
						<p:password id="password" value="#{loginMB.login.senha}"
							placeholder="Digite sua Senha" required="true" size="15" autocomplete="off"
							requiredMessage="Senha é obrigatória" />

					</h:panelGrid>
					<p:commandButton action="#{loginMB.doLogin}" value="Entrar"
						update=":mensagem" />
						
				</h:form>
			</div>

			<p:graphicImage value="/imagens/pata.png" width="300" height="75" />
		</p:panel>
	</ui:define>




</ui:composition>
